vim.g.mapleader = " "

local nmappings = {
	{ from="S", to =":w<CR>"},
	{ from="Q", to =":q<CR>"},

	-- Movement
	{ from="H", to="0"},
	{ from="J", to ="5j"},
	{ from="K", to ="5K"},

	-- Tab Management
	{ from="tn", to=":tabe<CR>"},
	{ from="th", to=":-tabnext<CR>"},
	{ from="tl", to=":+tabnext<CR>"},
}

for _, mapping in ipairs(nmappings) do
	vim.keymap.set(mapping.mode or "n", mapping.from, mapping.to, { noremap = true })
end

